import SDKManager from "../SDKManager";
import { ADName } from "../SDKConfig";
const { ccclass, property } = cc._decorator;

@ccclass
export default class BlockAdComp extends cc.Component {


    @property
    adName: string = ADName.block

    start() {
        if (this.adName)
            SDKManager.getChannel().showAd(this.adName, 0)
    }


    onDestroy() {
        if (this.adName)
            SDKManager.getChannel().closeAd(this.adName)
    }

}
